import { RawMessage } from "@minecraft/server";

/**
 * Name of the mod, default is `Minecraft`
 *
 * i18n is not supported.
 */
let MOD_NAME: string = "Minecraft";

/**
 * A short description of the mod.
 */
let MOD_DESC: string | RawMessage = "Default mod description";

/**
 * Get name of the mod.
 * @returns Name of the mod.
 */
export function getModName(): string {
  return MOD_NAME;
}

/**
 * Set name of the mod.
 * @param name
 */
export function setModName(name: string): void {
  MOD_NAME = name;
}

/**
 * Get description of the mod.
 * @returns Desciption of the mod.
 */
export function getModDescription(): string | RawMessage {
  return MOD_DESC;
}

export function setModDescription(desc: string | RawMessage): void {
  MOD_DESC = desc;
}
